package edu.chinasoft.pojo;

import org.apache.ibatis.type.Alias;

import java.util.List;
@Alias( "dept" )
public
class Dept {
    private int deptId;
    private String deptName;
    private String deptLocation;
    private List<User> userList;

    public
    Dept() {
    }

    public
    Dept(int deptId, String deptName, String deptLocation, List <User> userList) {
        this.deptId = deptId;
        this.deptName = deptName;
        this.deptLocation = deptLocation;
        this.userList = userList;
    }

    public
    int getDeptId() {
        return deptId;
    }

    public
    void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public
    String getDeptName() {
        return deptName;
    }

    public
    void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public
    String getDeptLocation() {
        return deptLocation;
    }

    public
    void setDeptLocation(String deptLocation) {
        this.deptLocation = deptLocation;
    }

    public
    List <User> getUserList() {
        return userList;
    }

    public
    void setUserList(List <User> userList) {
        this.userList = userList;
    }

    @Override
    public
    String toString() {
        return "Dept{" +
                "deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", deptLocation='" + deptLocation + '\'' +
                ", userList=" + userList +
                '}';
    }
}
